#define _CRT_SECURE_NO_WARNINGS 1


using namespace std;
#include"BSTree.h"
#include<iostream>

void test_1()
{
	xiaolin::BSTree<int> s;
	int a[] = { 8 ,2, 61,3,5,112,9,4,6,10 };
	for (auto x : a)
	{
		s.insert(x);
	}
	s._inorder();

	cout << endl;

	
	s.erase(8);
	s._inorder();

	cout << endl;
	s.erase(3);
	s._inorder();

	cout << endl;


	xiaolin::BSTree<int> s1;
	s1._inorder();
	cout << endl;
	s1 = s;
	s1._inorder();
	cout << endl;
}

int main()
{
	test_1();
	return 0;
}